<?php
try
{
echo '<p><center><h2>Wait while we are logging off you.</h2><img src="Images\loading.gif" alt="loading"/></center></p>';
	session_start();
    session_unset();
    session_destroy();
    session_write_close();
    //setcookie(session_name(),'',0,'/');
   // session_regenerate_id(true);
	$URL="index.php";
	echo '<META HTTP-EQUIV="refresh" content="0;URL=' . $URL . '">'; 
} catch(Exception $e)
{
	$URL="index.php";
	echo '<META HTTP-EQUIV="refresh" content="0;URL=' . $URL . '">'; 
}
?>